package com.gzk.hrm.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 自定义手机号验证规则
 * @author jake.chen
 */
@Documented
@Constraint(validatedBy = {_TelValid.class})
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface TelValid {

    String message() default "请输入正确的11位手机号格式";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}